package com.veng.springbootdemo.service;

import com.veng.springbootdemo.dao.AuthorRepository;
import com.veng.springbootdemo.po.Author;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class AuthorServiceImp implements AuthorService {

    @Autowired
    private AuthorRepository authorRepository;
    @Override
    public List<Author> findAll() {
        return authorRepository.findAll();
    }
}
